<div class="content">
    <div class="tabb">
	<a href="<?php echo SITE_NAME_URL ?>">Home</a><a href="<?php echo url('product'); ?>">Products</a><span> <?php echo $aCat[$idArr]['name'] ?> </span>
    </div>

    <div class="text-main">
	<div class="left-main">
	    <div class="box-left">
		<ul class="left-menu ">
		    <?php foreach ($aCat as $cat) { ?>
    		    <li><a href="<?php echo url('product/list_product/' . $cat['category_id']) ?>"><?php echo $cat['name'] ?></a></li>
		    <?php } ?>

		</ul>
	    </div>
	</div><!--left-main-->
	<div class="right-main">
	    <div class="title-pro">
		<div class="pull-left">
		    <?php /*
		      Sort:
		      <select style="width:150px; margin-bottom:0px" name="sortby" id="sortby" onchange="priceSort(this)">
		      <option>Price Low to High</option>
		      <option>Price High to Low</option>

		      </select>
		     * 
		     */ ?>
		</div>


		<!-- ************************************** START PAGINATOR *************************************-->
		<div class="pagination pagination-right">
		    <?php
		    $this->widget('bootstrap.widgets.TbPager', array(
			'pages' => $pages
		    ))
		    ?>
		    <div class='total-record'>
			<?php
			if ($iTotalRecord > Product::TOTAL_RECORD) {
			    $array = getPageination($pages);
			    ?>
    			Showing <?php echo $array['start']; ?>-<?php echo $array['end']; ?> of <?php echo $iTotalRecord; ?>    		    
			<?php } ?>
		    </div>
		</div>
		<!-- ************************************** END PAGINATOR *************************************-->
	    </div>

	    <ul class="pro box-perso">
		<?php
		foreach ($aProduct as $product) {
		    if ($id == CUSTOM_CASE_CAT) {
			?>
			<li>
			    <a href="<?php echo url('customcase/customcase/order/id/' . $product->custom_phone_id) ?>"><img src="<?php echo $product->getImg('thumb') ?>"></a>
			    <a  href="<?php echo url('customcase/customcase/order/id/' . $product->custom_phone_id) ?>"><?php echo $product->name ?></a>
			    <p>$<?php echo $product->price; ?></p>
			</li>
			<?php
		    } else {
			?>
			<li>
			    <a href="<?php echo url('product/detail/id/' . $product->product_id) ?>"><img src="<?php echo $product->getImg('thumb') ?>"></a>
			    <a  href="<?php echo url('product/detail/id/' . $product->product_id) ?>"><?php echo $product->name ?></a>
			    <p>$<?php echo $product->price; ?></p>
			</li>
			<?php
		    }
		}
		?>
	    </ul>

	</div><!--right-main-->

    </div><!--box-left-->
</div>